package com.example.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.entity.dto.PurchaseOrder.PurtcListDto;
import com.example.entity.dto.PurchaseOrder.RefPriceDto;
import com.example.entity.vo.PurchaseOrder.PurchaseDetailVo;
import com.example.entity.vo.PurchaseOrder.PurtcListVo;
import com.example.entity.yifei.Purtc;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-19
 */
public interface PurtcMapper extends BaseMapper<Purtc> {

    Double latestPrice(@Param("dto") RefPriceDto dto);

    String generateTc002(String tc001);

    List<PurtcListVo> getList(@Param("p") PurtcListDto purtcListDto);

    PurchaseDetailVo getOnePurtc(@Param("TC001")String TC001, @Param("TC002")String TC002);

}
